# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=orca
pkgver=46.0
pkgrel=1
pkgdesc="Orca is an extensible screen reader"
url="https://wiki.gnome.org/Projects/Orca"
arch="noarch !armhf" # missing gst-plugins-good
license="LGPL-2.1-or-later"
depends="
	at-spi2-core
	gst-plugins-good
	gtk+3.0
	libatk-1.0
	py3-atspi
	py3-gobject3
	py3-xdg
	python3
	"
makedepends="
	at-spi2-core-dev
	gstreamer-dev
	intltool
	itstool
	meson
	py3-gobject3-dev
	"
subpackages="$pkgname-lang $pkgname-doc $pkgname-pyc"
source="https://download.gnome.org/sources/orca/${pkgver%.*}/orca-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
21ea896cfa49c6eed76c0280adfc06201b9e4e000ba3799fd38e13966d99de700733a739f0ed6b589c6b44c65f8ea371dfe04efe2fcc9da1b2b0913e08197b9c  orca-46.0.tar.xz
"
